package tk.mybatis.springboot.service;

import java.util.Date;
import java.util.List;

import org.springframework.web.multipart.MultipartFile;

import tk.mybatis.springboot.model.AccessConnect;
import tk.mybatis.springboot.model.AccessPurview;
import tk.mybatis.springboot.model.AccessRole;
import tk.mybatis.springboot.model.AccessVisit;
import tk.mybatis.springboot.model.Commodity;
import tk.mybatis.springboot.model.Message;
import tk.mybatis.springboot.model.TUser;
import tk.mybatis.springboot.model.Usermessage;

public interface AdminService {
	public Message login(String sessionId, String phone, String pwd);
	
	public Message clerkFind(TUser tUser, Integer pageNumber, Integer pageSize);
	
	public Message clerkAdd(TUser tUser);
	
	public Message clerkEdit(TUser tUser);
	
	public Message clerkStatus(String id, String status);
	
	public Message charmtypeFind();
	
	public Message charmtypeAdd(String name);
	
	public Message charmtypeEdit(String id, String name);
	
	public Message charmtypeDel(String id);
	
	public Message clerkDel(String id);
	
	public Message goodsFind(Commodity commodity, Integer pageNumber, Integer pageSize);
	
	public Message goodsAdd(String name, String price);
	
	public Message goodsEdit(Commodity commodity);
	
	public Message goodsDel(String id);
	
	public Message goodsStatus(String id, Integer status);
	
	public Message userFind(TUser tUser, Integer pageNumber, Integer pageSize);
	
	public Message userStatus(String id, String status);
	
	public Message userAccess(String userId, String accessId);
	
	public Message commentFind(String userName, String context, Date contextDateBegin,
    		Date contextDateEnd, Integer pageNumber, Integer pageSize, Integer status);
	
	public Message commentReply(String id, String reply);
	
	public Message commentStatus(String id, Integer status);
	
	public Message commentDel(String id);
	
	public Message managerPwd(String id,String pwdNew, String pwdOld);
	
	public Message managerAdd(TUser tUser);
	
	public Message orderFind(String orderNo, String phone, Date createDateBegin,
    		Date createDateEnd, Integer pageNumber, Integer pageSize, String address);
	
	public Message orderStatus(String id, Integer status);
	
	public Message orderHistory(String id);
	
	public Message notificationFind(Usermessage userMessage, Integer pageNumber, Integer pageSize);
	
	public Message notificationAdd(Usermessage userMessage);
	
	public Message notificationEdit(Usermessage userMessage);
	
	public Message notificationDel(String id);
	
	public Message accessRolefind(String title, String abbreviation, Integer pageNumber, Integer pageSize);
	
	public Message accessRoleadd(String title, String abbreviation);
	
	public Message accessRoledel(String id);
	
	public Message accessRoleedit(AccessRole accessRole);
	
	public Message accessRolestatus(String id, String status);
	
	public Message accessAddrole(List<AccessConnect> accessConnects);
	
	public Message accessPurviewfind(AccessPurview accessPurview, Integer pageNumber, Integer pageSize);
	
	public Message accessPurviewadd(AccessPurview accessPurview);
	
	public Message accessPurviewdel(String id);
	
	public Message accessPurviewedit(AccessPurview accessPurview);
	
	public Message accessVisittree();
	
	public Message accessVisitadd(AccessVisit accessVisit);
	
	public Message accessVisitdel(String id);
	
	public Message accessVisitstatus(String id, String status);
	
	public Message accessVisitedit(AccessVisit accessVisit);
	
	public Message imgupload(MultipartFile img);
}
